package com.jiezhuo.mapper.iot;

import com.jiezhuo.dto.VideoBindDTO;
import com.jiezhuo.entity.IotSensorInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiezhuo.entity.SensorVideoRelation;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author com.jiezhuo
 * @since 2022-10-19
 */
public interface IotSensorInfoMapper extends BaseMapper<IotSensorInfo> {

    Map<String,String> openClose(int id);

    List<Map<String,Object>> operationMonitoringById(Integer id);

    List<Map<String,Object>> ruleConfiguration(Integer id);

    Map<String,Object> sensorInfo(Integer id);

    List<Map<String,Object>> triggerInfo(Integer id);

    List<Map<String,Object>> getSensorByNodeId(Integer id);

    int sensorBindingVideo(SensorVideoRelation sensorVideoRelation);
}
